ubifs: avoid assert failed in ubifs.c
authorPatrice Chotard <[email protected]>
Fri, 27 Apr 2018 13:51:23 +0000 (15:51 +0200)
committerHeiko Schocher <[email protected]>
Wed, 9 May 2018 09:53:55 +0000 (11:53 +0200)
commit87deefeccc49756ee33b5c0fb6dbe331dfdff487
tree1dcb86b11064e9738b977542f45b3f517784e09d
parentcc95535867f407534b0e59f8b5017f0f729833a9
ubifs: avoid assert failed in ubifs.c

This patch solves assert failed displayed in the console during a boot.
The root cause is that the ubifs_inode is not already allocated when
ubifs_printdir and ubifs_finddir functions are called.

Trace showing the issue:
feed 'boot.scr.uimg', ino 94, new f_pos 0x17b40ece
dent->ch.sqnum '7132', creat_sqnum 3886945402880
UBIFS assert failed in ubifs_finddir at 436
INODE ALLOCATION: creat_sqnum '7129'
Found U-Boot script /boot.scr.uimg

Signed-off-by: Christophe Kerello <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
fs/ubifs/ubifs.c